 <div>
    <div class="span5">
        <h1>用户登录</h1>

        <div class="form">
            <?php $form = $this->beginWidget('CActiveForm', array(
            'id' => 'login-form',
            'enableClientValidation' => true,
            'clientOptions' => array(
                'validateOnSubmit' => true,
            ),
        )); ?>

            <p class="note">标有 <span class="required">*</span> 的项是必填的.</p>

            <div class="row">
                <?php echo $form->labelEx($model, 'username'); ?>
                <?php echo $form->textField($model, 'username'); ?>
                <?php echo $form->error($model, 'username'); ?>
            </div>

            <div class="row">
                <?php echo $form->labelEx($model, 'password'); ?>
                <?php echo $form->passwordField($model, 'password'); ?>
                <?php echo $form->error($model, 'password'); ?>
            </div>

            <div class="row rememberMe">
                <?php echo $form->checkBox($model, 'rememberMe'); ?>
                <?php echo $form->label($model, 'rememberMe'); ?>
                <?php echo $form->error($model, 'rememberMe'); ?>
            </div>

            <div class="row buttons">
                <?php
                $this->widget('bootstrap.widgets.TbButton', array(
                    'buttonType' => 'submit',
                    'type' => 'primary',
                    'label' => '立即登陆',
                    'loadingText' => '正在登陆...',
                    'htmlOptions' => array('id' => 'btnSubmit'),
                ));


                ?>

                <span>
                    <?php echo CHTML::link('忘记密码?', array('user/retrievepassword')); ?>
                </span>

            </div>

            <?php $this->endWidget(); ?>
        </div>
        <!-- form -->
    </div>
    <div class="span5">
        没有没有注册过? <?php echo CHTML::link('去注册?', array('user/register')); ?>
        <h3>使用合作网站帐号登录</h3>

        <div class="connections">
            <a href="#" class="btn-connect btn-weibo"></a>
            <a href="#" class="btn-connect btn-qq"></a>
            <a href="#" class="btn-connect btn-douban"></a>
            <a href="#" class="btn-connect btn-taobao"></a>
            <a href="#" class="btn-connect btn-renren"></a>

        </div>

        <script id='denglu_login_js' type='text/javascript' charset='utf-8'></script>
        <script type='text/javascript' charset='utf-8'>
        	(function() {
        		var _dl_time = new Date().getTime();
        		var _dl_login = document.getElementById('denglu_login_js');
        		_dl_login.id = _dl_login.id + '_' + _dl_time;
        		_dl_login.src = 'http://open.denglu.cc/connect/logincode?appid=99703denwN0tSvoxR01NlwEBXNFdR6&v=1.0.2&widget=2&styletype=1&size=438_106&asyn=true&time=' + _dl_time;
        	})();
        </script>

        <!-- UY BEGIN -->
        <div id="uyan_frame"></div>
        <script type="text/javascript" id="UYScript" src="http://v1.uyan.cc/js/iframe.js?UYUserId=1677081" async=""></script>
        <!-- UY END -->

        <!-- UJian Button BEGIN -->
        <script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide&uid=1677081"></script>
        <!-- UJian Button END -->
    </div>
</div>

